import { post, get } from '../utils/request'

/**
 * 注册
 * @param {*} data
 *  userName  注意大小写
 *  password  密码
 * @returns
 */
export const regAPI = (data) => post('/api/member/register', data)

/**
 * 登录
 * @param {*} data
 * @returns
 */
export const loginAPI = (data) => post('/api/member/login_v1', data)

/**
 * 获取个人信息
 * @returns
 */
export const loadUserInfoAPI = () => get('/api/v1/user/info')
